package com.bupt.fmmall.dao;

import com.bupt.fmmall.entity.Product;

import java.util.List;

public interface ProductDao {

    //添加商品
    int insert_Product(Product product);
    //返回所有商品
    List<Product> select_Products();
    //根据商品id查询商品
    Product query_Product_by_itemId(int itemId_param);
    //根据商品类别id查询商品
    List<Product> query_Products_by_itemTypeId(int itemTypeId_param);
    //根据商品id删除商品
    boolean delete_Product_by_itemId(int itemId_param);
    //根据商品id更新商品
    boolean update_Product_by_itemId(Product product);

}
